Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: support sharding component hscale to rerender #8821

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sophon-zt
Copy link
Contributor

No description provided.

@sophon-zt sophon-zt requested a review from a team as a code owner January 17, 2025 06:32
@github-actions github-actions bot added the size/M Denotes a PR that changes 30-99 lines. label Jan 17, 2025
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

Attention: Patch coverage is 24.13793% with 22 lines in your changes missing coverage. Please review.

Project coverage is 60.26%. Comparing base (982672d) to head (2789c3a).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
pkg/controller/configuration/config_utils.go 18.51% 21 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8821      +/-   ##
==========================================
- Coverage   60.34%   60.26%   -0.09%     
==========================================
  Files         381      381              
  Lines       46215    46244      +29     
==========================================
- Hits        27889    27868      -21     
- Misses      15654    15701      +47     
- Partials     2672     2675       +3     
Flag Coverage Δ
unittests 60.26% <24.13%> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@apecloud-bot apecloud-bot added the approved PR Approved Test label Jan 20, 2025
@@ -207,12 +207,13 @@ type ComponentConfigSpec struct {

// RerenderResourceType defines the resource requirements for a component.
// +enum
// +kubebuilder:validation:Enum={vscale,hscale,tls}
// +kubebuilder:validation:Enum={vscale,hscale,tls,shardingHScale}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about supporting shardingVScale together?

return nil
}

clusterCompName := component.Labels[constant.KBAppShardingNameLabelKey]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename clusterCompName -> shardingName would be better

return nil
}

for i, comp := range cluster.Spec.Shardings {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto, rename comp -> sharding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved PR Approved Test size/M Denotes a PR that changes 30-99 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants